package com.example.android427.Fragment;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.ImageButton;

import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;

import com.example.android427.R;
import com.example.android427.qikanActivity;
import com.example.android427.tingshuActivity;
import com.example.android427.tlsaomanbupianjian;
import com.example.android427.tlsbalishengmuyuan;
import com.example.android427.tlsbeicanshijie;
import com.example.android427.tlschahuanv;
import com.example.android427.tlschuci;
import com.example.android427.tlsdongzhoulieguozhi;
import com.example.android427.tlsfuhuo;
import com.example.android427.tlsgangtieshizeyanglianchengde;
import com.example.android427.tlshuainanzi;
import com.example.android427.tlsjianai;
import com.example.android427.tlsjigongzhuan;
import com.example.android427.tlspiao;
import com.example.android427.tlsqikan;
import com.example.android427.tlsquanbu;
import com.example.android427.tlsshanhaijing;
import com.example.android427.tlssongci;
import com.example.android427.tlsxunzi;
import com.example.android427.tlszhaohuaxishi;
import com.example.android427.tlszhongwaimingzhu;
import com.example.android427.tushuActivity;
import com.example.android427.zhuantiActivity;

import static com.example.android427.R.id.sj_qikan;
import static com.example.android427.R.id.sj_zhongwaimingzhu;
public class shujiaFragment extends Fragment {
    Button b1;
    Button b2;
    Button b3;
    Button b4;
    Button b5;

    ImageButton jt1;
    ImageButton jt2;
    ImageButton jt3;
    ImageButton jt4;
    ImageButton jt5;
    ImageButton jt6;
    ImageButton jt7;
    ImageButton jt8;
    ImageButton jt9;
    ImageButton jt10;

    Button b_1;
    Button b_2;
    Button b_3;
    Button b_4;
    Button b_5;
    Button b_6;


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        return inflater.inflate(R.layout.shujia,container,false);
    }
    @Override
    public void onActivityCreated(@Nullable Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);


        b1 = (Button) getActivity().findViewById(R.id.sj_quanbu);
        b1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), tushuActivity.class);
                startActivity(intent);
            }
        });


        b2 = (Button) getActivity().findViewById(R.id.sj_zhongwaimingzhu);
        b2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), qikanActivity.class);
                startActivity(intent);
            }
        });


        b3 = (Button) getActivity().findViewById(sj_qikan);
        b3.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), tingshuActivity.class);
                startActivity(intent);
            }
        });

        b4 = (Button) getActivity().findViewById(R.id.sj_xiaoshuo);
        b4.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), zhuantiActivity.class);
                startActivity(intent);
            }
        });
//今日推荐下的书籍
        jt1 = (ImageButton) getActivity().findViewById(R.id.fuhuo);
        jt1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), tlsfuhuo.class);
                startActivity(intent);
            }
        });

        jt2 = (ImageButton) getActivity().findViewById(R.id.beicanshijie);
        jt2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), tlsbeicanshijie.class);
                startActivity(intent);
            }
        });

        jt3 = (ImageButton) getActivity().findViewById(R.id.zhaohuaxishi);
        jt3.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), tlszhaohuaxishi.class);
                startActivity(intent);
            }
        });
        jt4 = (ImageButton) getActivity().findViewById(R.id.gangtieshizeyanglianchengde);
        jt4.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), tlsgangtieshizeyanglianchengde.class);
                startActivity(intent);
            }
        });

        jt5 = (ImageButton) getActivity().findViewById(R.id.jigongzhuan);
        jt5.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), tlsjigongzhuan.class);
                startActivity(intent);
            }
        });
        jt6 = (ImageButton) getActivity().findViewById(R.id.chuci);
        jt6.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), tlschuci.class);
                startActivity(intent);
            }
        });
        jt7 = (ImageButton) getActivity().findViewById(R.id.songci);
        jt7.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), tlssongci.class);
                startActivity(intent);
            }
        });
        jt8 = (ImageButton) getActivity().findViewById(R.id.huainanzi);
        jt8.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), tlshuainanzi.class);
                startActivity(intent);
            }
        });
        jt9 = (ImageButton) getActivity().findViewById(R.id.shanhaijing);
        jt9.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), tlsshanhaijing.class);
                startActivity(intent);
            }
        });
        jt10 = (ImageButton) getActivity().findViewById(R.id.xunzi);
        jt10.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), tlsxunzi.class);
                startActivity(intent);
            }
        });
     //第一行
        b_1 = (Button) getActivity().findViewById(R.id.chahuanv);
        b_1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), tlschahuanv.class);
                startActivity(intent);
            }
        });

        b_2 = (Button) getActivity().findViewById(R.id.jianai);
        b_2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), tlsjianai.class);
                startActivity(intent);
            }
        });
        b_3 = (Button) getActivity().findViewById(R.id.dongzhoulieguozhi);
        b_3.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), tlsdongzhoulieguozhi.class);
                startActivity(intent);
            }
        });
        b_4 = (Button) getActivity().findViewById(R.id.piao);
        b_4.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), tlspiao.class);
                startActivity(intent);
            }
        });
        b_5 = (Button) getActivity().findViewById(R.id.aomanbupianjian);
        b_5.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), tlsaomanbupianjian.class);
                startActivity(intent);
            }
        });
        b_6 = (Button) getActivity().findViewById(R.id.balishengmuyuan);
        b_6.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getActivity(), tlsbalishengmuyuan.class);
                startActivity(intent);
            }
        });








    }







}
